Optimal. Leaf size=54 \[ -\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2}{a d \sqrt {a+b \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3970, 53, 65,
213} \begin {gather*} \frac {2}{a d \sqrt {a+b \sec (c+d x)}}-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 53
Rule 65
Rule 213
Rule 3970
Rubi steps
\begin {align*} \int \frac {\tan (c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x (a+x)^{3/2}} \, dx,x,b \sec (c+d x)\right )}{d}\\ &=\frac {2}{a d \sqrt {a+b \sec (c+d x)}}+\frac {\text {Subst}\left (\int \frac {1}{x \sqrt {a+x}} \, dx,x,b \sec (c+d x)\right )}{a d}\\ &=\frac {2}{a d \sqrt {a+b \sec (c+d x)}}+\frac {2 \text {Subst}\left (\int \frac {1}{-a+x^2} \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{a d}\\ &=-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2}{a d \sqrt {a+b \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(128\) vs. \(2(54)=108\).
time = 0.40, size = 128, normalized size = 2.37 \begin {gather*} \frac {\left (2 a \cos (c+d x)+\sqrt {a \cos (c+d x)} \sqrt {b+a \cos (c+d x)} \left (\log \left (1-\frac {\sqrt {b+a \cos (c+d x)}}{\sqrt {a \cos (c+d x)}}\right )-\log \left (1+\frac {\sqrt {b+a \cos (c+d x)}}{\sqrt {a \cos (c+d x)}}\right )\right )\right ) \sec (c+d x)}{a^2 d \sqrt {a+b \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 45, normalized size = 0.83
method | result | size |
derivativedivides | \(\frac {-\frac {2 \arctanh \left (\frac {\sqrt {a +b \sec \left (d x +c \right )}}{\sqrt {a}}\right )}{a^{\frac {3}{2}}}+\frac {2}{a \sqrt {a +b \sec \left (d x +c \right )}}}{d}\) | \(45\) |
default | \(\frac {-\frac {2 \arctanh \left (\frac {\sqrt {a +b \sec \left (d x +c \right )}}{\sqrt {a}}\right )}{a^{\frac {3}{2}}}+\frac {2}{a \sqrt {a +b \sec \left (d x +c \right )}}}{d}\) | \(45\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.47, size = 70, normalized size = 1.30 \begin {gather*} \frac {\frac {\log \left (\frac {\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} - \sqrt {a}}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} + \sqrt {a}}\right )}{a^{\frac {3}{2}}} + \frac {2}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} a}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 116 vs.
\(2 (46) = 92\).
time = 3.82, size = 260, normalized size = 4.81 \begin {gather*} \left [\frac {4 \, a \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) + {\left (a \cos \left (d x + c\right ) + b\right )} \sqrt {a} \log \left (-8 \, a^{2} \cos \left (d x + c\right )^{2} - 8 \, a b \cos \left (d x + c\right ) - b^{2} + 4 \, {\left (2 \, a \cos \left (d x + c\right )^{2} + b \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}}\right )}{2 \, {\left (a^{3} d \cos \left (d x + c\right ) + a^{2} b d\right )}}, \frac {{\left (a \cos \left (d x + c\right ) + b\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{2 \, a \cos \left (d x + c\right ) + b}\right ) + 2 \, a \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{a^{3} d \cos \left (d x + c\right ) + a^{2} b d}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tan {\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.95, size = 50, normalized size = 0.93 \begin {gather*} \frac {2}{a\,d\,\sqrt {a+\frac {b}{\cos \left (c+d\,x\right )}}}-\frac {2\,\mathrm {atanh}\left (\frac {\sqrt {a+\frac {b}{\cos \left (c+d\,x\right )}}}{\sqrt {a}}\right )}{a^{3/2}\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________